// #region    导航栏
const item_img = [
  "./upload/item1.png",
  "./upload/item2.png",
  "./upload/item3.png",
  "./upload/item4.png",
  "./upload/item5.png",
  "./upload/item6.png",
  "./upload/item7.png",
  "./upload/item8.png",
  "./upload/item9.png",
  "./upload/item10.png",
];
const item_name = [
  "苏宁家电",
  "苏宁超市",
  "手机电脑",
  "家具家装",
  "生活家电",
  "Super会员",
  "优选空调",
  "签到有礼",
  "领券中心",
  "以旧换新",
];
const nav = document.querySelector("nav");
console.log(nav);
for (let i = 0; i < item_img.length; i++) {
  const e = item_img[i];
  const item = document.createElement("div");
  item.innerHTML = `
    <img src="${e}" alt="item${i}" />
    <span>${item_name[i]}</span>
  `;
  nav.append(item);
}
// #endregion 导航栏
